package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class BrandAddNewParam implements Serializable {

    @NotNull(message = "品牌名称不能为空")
    @ApiModelProperty(value = "品牌名称", required = true, example = "测试品牌")
    private String name;

    @NotNull(message = "品牌拼音不能为空")
    @ApiModelProperty(value = "品牌拼音", required = true, example = "ceshipinpai")
    private String pinyin;

    @NotNull(message = "品牌logo不能为空")
    @ApiModelProperty(value = "品牌logo", required = true, example = "测试品牌logo")
    private String logo;

    private String description;

    private String keywords;

    @NotNull(message = "品牌排序不能为空")
    @Range(max = 99)
    private Integer sort;

    @NotNull(message = "是否禁用不能为空")
    @Range(max = 1)
    private Integer enable;

}
